package com.cn.wanxi.dao.impl;

import com.cn.wanxi.dao.NavDao;
import com.cn.wanxi.model.NavModel;
import com.cn.wanxi.util.GetSqlSession;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class NavImpl implements NavDao {
    @Override
    public List<NavModel> getNavModelList() {
        SqlSession sqlSession = GetSqlSession.getSqlSession();//连接数据库
        List<NavModel> list=sqlSession.selectList("com.cn.wanxi.dao.NavDao.getNavModelList");
        GetSqlSession.commit();
        return list;
    }

}
